package com.tofindaway.jms;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class testReceiver {

	private static ApplicationContext ctx;

	public static void main(String[] args) {
		ctx = new ClassPathXmlApplicationContext("application-context.xml");
		JmsReceiver receiver = (JmsReceiver) ctx.getBean("messageReceiver");	
		receiver.receiverTextMsg();
	}
}